package demo.huodongbaoming;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.cloud.openfeign.EnableFeignClients;
import demo.huodongbaoming.config.LoadBalancerConfiguration;

@SpringBootApplication
@EnableDiscoveryClient // 启用服务发现
@EnableFeignClients // 启用OpenFeign客户端
@LoadBalancerClients({
    @LoadBalancerClient(value = "activity-service", configuration = LoadBalancerConfiguration.class)
})
public class HuodongbaomingApplication {

    public static void main(String[] args) {
        SpringApplication.run(HuodongbaomingApplication.class, args);
    }

}
